package persistencia;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conexao {

	public static Connection getConexao() throws SQLException{
		try{
			Class.forName("org.postgresql.Driver");
			return DriverManager.getConnection("jdbc:postgresql://localhost", "postgres", "jesus123");
		}
		catch(ClassNotFoundException cnfe){
			throw new SQLException(cnfe.getMessage()); 
		}	
	}
}
